package mspbots.qbd.data.online.companyinfo;

import mspbots.qbd.data.online.preferences.OnlinePreferences;
import org.springframework.data.r2dbc.repository.R2dbcRepository;
import reactor.core.publisher.Mono;

public interface OnlineCompanyInfoRepository extends R2dbcRepository<OnlineCompanyInfo, Long> {

    /**
     * find entity other id and tenant id
     *
     * @param otherId  other Id
     * @param tenantId tenant id
     * @return Invoice entity
     */
    Mono<OnlineCompanyInfo> findByOtherIdAndTenantId(Long otherId, Long tenantId);
}
